<?php

class Separator extends Block
{
	public static function get($id) {
		return self::makeObj(array('id' => $id));
	}
	
	public static function create($name = '/') {
		$id = Area::register(self::makeObj(), $name);
		
		return array('id' => $id);
	}
	
	public static function delete($id) {
		Area::unregister($id);
	}
	
	public static function makeObj($sep = array('id' => 0))
	{
		$obj = new self;
		$obj->id = $sep['id'];
		return $obj;
	}
	
	public function show()
	{
		Design::load('modules/separator/separator.tpl.php', array('separator' => $this));
	}
	
	public function showBuffered()
	{
		return Design::read('modules/separator/separator.tpl.php', array('separator' => $this));
	}
}
?>